<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN">
<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<title>User config callback functions</title>
<link rel="stylesheet" type="text/css" href="../style.css">
</head>

<body>

<div align="center">
<table class=allEncompassingTable >
 <tr>
  <td >
<p><a href="../index.html" TARGET="_top"><img src="images/homeImg.png"></a></p>



<h1>User config callback functions</h1>

<p>A <a href="customizationScripts.htm">customization script</a> can include a user config callback function, which is triggered when the user double-clicks the <a href="userParameters.htm">user parameter</a> icon, in the scene hierarchy. This allows for a flexible behaviour for setting simulation parameters for instance: one can open a complex <a href="customUIPlugin.htm">custom user interface</a> for user interaction, or a simple file dialog as in following example:</p>
<pre class=lightRedBox>
function <strong>sysCall_userConfig</strong>()
    fileAndPath=sim.fileDialog(sim.filedlg_type_load,'Select file','','','text files','txt')
    print('Selected file is: ',fileAndPath)
end
</pre>





<br>
<h3 class=recommendedTopics>Recommended topics</h3>
<li><a href="userParameters.htm">User parameters</a></li>
<li><a href="customizationScripts.htm">Customization scripts</a></li>

<br>
<br>
 </tr>
 <tr>
   <td > 
 </tr>
</table> 
</div>  
  
  
</body>

</html>
